﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OAuth.QQ
{
    public class QQOAuthRequestURL:IOAuthRequestURL
    {
        private Uri BaseURL = new Uri("https://open.t.qq.com", UriKind.Absolute);

        /// <summary>
        /// 获取未授权的Request Token
        /// </summary>
        /// <returns></returns>
        public Uri GetRequestTokenURL()
        {
            return new Uri(BaseURL, "/cgi-bin/request_token");
        }

        /// <summary>
        /// 请求用户授权Token
        /// </summary>
        /// <returns></returns>
        public Uri GetRequestOAuthTokenURL()
        {
            return new Uri(BaseURL, "/cgi-bin/authorize");
        }

        /// <summary>
        /// 获取授权过的Access Token
        /// </summary>
        /// <returns></returns>
        public Uri GetRequestAccessTokenURL()
        {
            return new Uri(BaseURL, "/cgi-bin/access_token");
        }
    }
}
